package com.xuanwei.core.entity.param;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @Author jiangyong
 * @Description TODO
 * @Date 2019/9/2 12:52
 **/
@Data
public class Comment {

    private Integer orderId;

    private List<CommentItem> commentItems;

    @Data
    public static class CommentItem{

        @Min(value = 1, message = "订单详情ID参数错误")
        private Integer orderItemId;

        @NotBlank(message = "评论内容不能为空")
        private String content;

        private String image;

        @Min(value = 1,message = "等级不能为空")
        private Integer level;
    }
}
